
import javax.xml.ws.Endpoint;

import assignmentImplementation.KeyValueBaseImpl;
import assignmentImplementation.IndexImpl;


public class Main {
	/**
	 * @param args
	 */

	public static void main(String[] args) {

		KeyValueBaseImpl k;
		k = new KeyValueBaseImpl(new IndexImpl(), "./.KeyValueStore");
		Endpoint.publish("http://localhost:1234/keyvalue", k);
		System.out.println("Server started");
		//defragging algorthim can go here
	}

}
